package cn.ht.bootdemo.common.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author ht
 * @Description:
 * @date 2020-5-6
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
public class ResultVo<T> implements Serializable {

    @ApiModelProperty("状态码")
    private Integer code;

    /**
     * 响应消息
     */
    @ApiModelProperty("消息")
    private String message;

    /**
     * 响应中的数据
     */
    @ApiModelProperty("返回数据")
    private T data;
}
